home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / umich / network / ka9q / ka9q_src.arc / ST.H < prev    next >
C/C++ Source or Header  |  1988-11-30  |  1KB  |  33 lines

  1. /* Various I/O definitions specific to the Atari ST */
  2.  
  3. /* Iorec structure as defined by Atari BIOS */
  4. struct iorec {
  5.     char *ibuf;        /* pointer to buffer */
  6.     int16 ibufsiz;        /* size of buffer */
  7.     int16 ibufhd;        /* head index */
  8.     int16 ibuftl;        /* tail index */
  9.     int16 ibuflow;        /* low-water mark */
  10.     int16 ibufhi;        /* high-water mark */
  11. };
  12.  
  13. /* Asynch controller control block */
  14. struct asy {
  15.     struct iorec *in,*out;    /* ptr to current iorecs */
  16.     struct iorec oldin,oldout; /* saved iorecs */
  17.     unsigned addr;        /* Base I/O address, 1 or 3 on the Atari */
  18.     unsigned vec;        /* Interrupt vector, used as route thru flag */
  19.     unsigned speed;     /* Line speed */
  20. };
  21.  
  22. extern struct asy asy[];
  23. extern unsigned nasy;        /* Actual number of asynch lines */
  24. #define ASY_MAX 2        /* Two asynch ports allowed on the ST */
  25. #define RS232    1        /* address of RS232 */
  26. #define MIDI    3        /* address of MIDI */
  27.  
  28. #define FLOW    1        /* flow control just like FLOW ON on a tnc-2 */
  29.  
  30. /*
  31. extern int _clktick;
  32. */
  33.